<!DOCTYPE html>
<html>
<head>
<#include "/admin/common/common.ftl" parse=true encoding="utf-8">
<style>
.fw {
	font-weight: bold;
	text-align: right;
}

.img-thumbnail {
	width: 170px;
	height: 110px;
	overflow: hidden;
}

.sub-header {
	padding-bottom: 10px;
	border-bottom: 1px solid #eee;
}
</style>
</head>
<body class="hold-transition skin-blue sidebar-mini">
	<div class="wrapper">

		<#include "/admin/common/header.ftl" parse=true encoding="utf-8">

		<!-- Content Wrapper. Contains page content -->
		<div class="content-wrapper">
			<!-- Content Header (Page header) -->
			<section class="content-header">
				<h1>会员管理</h1>
				<ol class="breadcrumb">
					<li class="active">会员信息详情</li>
				</ol>
			</section>
		
			<!-- Main content -->
			<section class="content">
				<!-- Info boxes -->
				<div class="row">
					<div class="box">
						<div class="box-header">
							<div class="table-btn">
								<a href="${base}/admin/member/personal/list.do"> <span class="label label-primary">列表</span>
								</a> <a href="javascript:search();"> <span class="label label-primary">搜索</span>
								</a>
							</div>
						</div>
						<!-- /.box-header -->
						<div class="box-body">
							<form class="form-horizontal" role="form" id="myForm" method="post">
								<table class="table table-bordered table-striped">
									<thead>
									</thead>
									<tbody>
										<tr>
											<td class="fw td1">用户头像</td>
											<td class="td2"><img class="img-thumbnail" id="userAvatarUrl" name="userAvatarUrl" /></td>
											<td class="fw td1">会员编号</td>
											<td class="td2">${memberVo.sn!}</td>
										</tr>
										<tr>
											<td class="fw td1">用户名</td>
											<td class="td2">${memberVo.username!}</td>
											<td class="fw td1">邮箱地址</td>
											<td class="td2">${memberVo.email!}</td>
										</tr>
										<tr>
											<td class="fw td1">最新登录时间</td>
											<td class="td2">${memberVo.lastestLoginTime!}</td>
											<td class="fw td1">最新登录IP</td>
											<td class="td2">${memberVo.lastestLoginIp!}</td>
										</tr>
										<tr>
											<td class="fw td1">是否允许登录</td>
											<td class="td2">${memberVo.isAllowLogin!}</td>
											<td class="fw td1">总登录次数</td>
											<td class="td2">${memberVo.totalLoginNum!}</td>
										</tr>
										<tr>
											<td class="fw td1">账号激活情况</td>
											<td class="td2">${memberVo.isActivated!}</td>
											<td class="fw td1">创建时间</td>
											<td class="td2">${personVo.createTime!}</td>
										</tr>
										<#if (personVo.province??) && (personVo.province != "请选择省")>
										<tr>
											<td class="fw td1">联系地址</td>
											<td class="td2">${personVo.province!}${personVo.city!}${personVo.district!}
											<#if (personVo.street??) && (personVo.street != "")>
												${personVo.street!}
											</#if>
											</td>
										</tr>
										</#if>
									</tbody>
								</table>
								<div class="form-group">
									<div class="col-sm-offset-3 col-sm-3">
										<button type="button" class="btn btn-primary" onclick="returnList()">返回</button>
									</div>
								</div>
							</form>
						</div>
						<!-- /.box-body -->
					</div>
					<!-- /.box -->
				</div>
				<!-- /.row -->
			</section>
		</div>
		<!-- /.content-wrapper -->

		<#include "/admin/common/footer.ftl" parse=true encoding="utf-8">

	</div>
	<!-- ./wrapper -->
<script type="text/javascript">
	$(function(){
        if("${memberVo.userAvatarUrl!}" != ""){
	        $("#userAvatarUrl").attr('src', "${base}/admin/io/uploadPreviewAction.do?filename=${memberVo.userAvatarUrl!}");
        }else{
	        $("#userAvatarUrl").attr('src', "${base}/styles/images/common/default-avatar.png");
        }
       });
       
	function returnList(){
		window.location.href = "${base}/admin/member/personal/list.do";
	}
</script>
</body>
</html>

